package com.tinama.jedis01.cas;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author lgc
 * @createDate 2020/10/15 - 9:37
 */
public class CASdemo {
    public static void main(String[] args){
//        AtomicInteger atomicInteger = new AtomicInteger(1);
//        System.out.println(atomicInteger.compareAndSet(1, 2));
//        atomicInteger.getAndIncrement();

        Integer integer =  new Integer(188);
        Integer integer1 = new Integer(188);
        Integer integer2 = Integer.valueOf(127);
        Integer integer3 = Integer.valueOf(127);
        System.out.println(integer3==integer2);
    }
}
